Class CommandHistoryImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.impl.CommandHistoryImpl
All Implemented Interfaces:
IPCData, CommandHistory

public class CommandHistoryImpl extends IPCDataImpl implements CommandHistory
  • Field Details

    • history

      protected List<String> history
    • maxCount

      protected int maxCount
  • Constructor Details

    • CommandHistoryImpl

      public CommandHistoryImpl()
  • Method Details

    • getHistory

      public List<String> getHistory()
      Specified by:
      getHistory in interface CommandHistory
      Returns:
      List<String> Returns a List<String>
    • setHistory

      public void setHistory(List<String> history)
      Specified by:
      setHistory in interface CommandHistory
      Parameters:
      history - Takes in a parameter of history
    • getMaxCount

      public int getMaxCount()
      Specified by:
      getMaxCount in interface CommandHistory
      Returns:
      int Returns a int
    • setMaxCount

      public void setMaxCount(int maxCount)
      Specified by:
      setMaxCount in interface CommandHistory
      Parameters:
      maxCount - Takes in a parameter of maxCount
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Specified by:
      read in class IPCDataImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object